* {
    margin: 0;
    padding: 0;
}

body {
    background-color: #111;
}

.container {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    padding: 20px;
    border-radius: 50%;
    /* 背景渐变色，旋转 150度 进行着色 */
    background-image: linear-gradient(150deg, #5f2093, transparent, transparent);
    animation: move 6s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

.container::before,
.container::after {
    content: "";
    position: relative;
    top: -185px;
    left: 65px;
    display: block;
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, .8);
    border-radius: 50%;
}

.container::before {
    width: 35px;
    top: 40px;
    left: 30px;
    transform: rotate(-40deg);
}

/* 行星 */
.container .planet {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-image: linear-gradient(150deg, #a37dce, #5f2093, transparent);
}

/* 环绕的轨道 */
.container .planet::before,
.container .planet::after {
    content: "";
    position: absolute;
    top: 90px;
    left: -40px;
    width: 300px;
    height: 40px;
    border: 10px solid #c099ef;
    border-top-color: transparent;
    transform: rotate(-20deg);
    border-radius: 50%;
}

.container .planet::after {
    border-top-color: #c099ef;
    z-index: -99;
}

/* 定义漂浮动画 */
@keyframes move {
    0% {
        top: 50%;
    }
    50% {
        top: 45%;
    }
    100% {
        top: 50%;
    }
}
